import { DBHandler } from "../database";
import Koa from "koa";

const findData = async () => {
  let data = await DBHandler.find("myc3", {});
  console.log(data);
  return data;
};

const getDBTest = async (
  ctx: Koa.ParameterizedContext<Koa.DefaultState, Koa.DefaultContext, any>
) => {
  ctx.response.body = await findData();
};

export { getDBTest };
